<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.knowledge.model.New" %>
<%List<New> newList = (List<New>)request.getAttribute("newList"); %>
<div class="home">
	<div class="main-page" style="margin-top: 20px;">
		<div class="home-content-holder clearfix">
			<div class="home-body">
				<div class="news-feed">

					<div class="feed-header clearfix">
						<ul class="feed-filter clearfix">
							<li class="current" id="showAllFeed">
								<a href="#nogo">新鲜事</a>
							</li>
						</ul>
					</div>

					<div class="feed-holder ">
						<div id="feedHome">
						<%
							if(newList != null){
								for(New n : newList){
						%>
							<div class="feed feed-blog text-story expand bold-feed "
								id="newslist<%=n.getId() %>">
								<div class="feed-icon">
									<img src="img/blog.gif" alt="日志" />
								</div>
								<div class="feed-content">
									<div class="headline">
										<div class="title">
											<span class="share-n-hide">
												<a class="x-to-hide" href="javascript:hiddenDiv('newslist','<%=n.getId() %>');"></a>
											</span>
											<h4>
												<a href="profile.action?userId=<%=n.getOwnId() %>" target="_blank"><%=n.getOwnName() %></a>
												发表新知识
												<a href="viewknowledge.action?knowledgeId=<%=n.getKnowledgeId() %>&userId=<%=n.getOwnId() %>&user=own" target="_blank">
													<%=n.getTitle() %></a>
											</h4>
										</div>
									</div>
									<div class="feedbody">
										<p><%=n.getSummary() %></p>
									</div>
								</div>
							</div>
						<%		}
							}
						%>
							
							<%--<div class="feed text-story share-blog expand">
								<div class="feed-icon">
									<a href="/stories.do?f=1"> <img
											src="img/share.gif" alt="分享" /> </a>
								</div>
								<div class="feed-content">
									<div class="headline">
										<div class="title">
											<span class="share-n-hide"> 
												<a class="x-to-hide" href="javascript:readHomeFeed('');"></a>
											</span>
											<h4>
												<a target="_blank"
													href="/profile.do">刘丰玮</a>
													分享日志
												<a href="/GetEntry.do" target="_blank">
													写给所有曾经拥有好同桌的人。。。&#40;太经典了，不得不转）</a>
											</h4>
										</div>
									</div>
									<div class="feedbody">
										<p>来自：
											<a target="_blank" href="/profile.do">田尧</a>
										</p>
										<p>
											从此以后不会再有同桌了。大学，是一个偏过头就看见陌生人的地方。每次都是不同的角度，不同的侧脸。一个人坐着这慢慢回忆，回忆...
										</p>
									</div>
								</div>
							</div>

							<div class="feed feed-status text-story expand ">
								<div class="feed-icon">
									<a href="/stories.do?f=5">
										<img src="img/status.gif" alt="状态" /> </a>
								</div>
								<div class="feed-content">
									<div class="headline">
										<div class="title">
											<span class="share-n-hide">
											<a class="x-to-hide" href="javascript:readHomeFeed('');"></a>
											</span>
											<h4>
												<a href="/profile.do" target="_blank">黄凯</a>
													更新状态：走自己的路，让别人去说吧~	
											</h4>
										</div>
									</div>
								</div>
							</div>
							<div class="feed feed-friends ">
								<div class="feed-icon">
									<a href="/stories.do">
										<img src="img/friends.gif" alt="好友" /> </a>
								</div>
								<div class="feed-content">
									<div class="headline">
										<div class="title">
											<span class="share-n-hide">
											 <a class="x-to-hide"
												href="javascript:readHomeFeed('');"></a>
											</span>
											<h4>
												<a target="_blank" href="/profile.do">柴巧珍</a>
													与
												<a target="_blank" href="/profile.do">关煜杰</a>
													成为好友
											</h4>
										</div>
									</div>
								</div>
							</div>

							--%>
							
							<%--<a href="#nogo" onfocus="this.blur()" id="moreFeed"
								class="more-feed-abox">
								<h1 class="feedcollapse">
									更多新鲜事
								</h1>
								<p id="" class="gray">
									当前显示
									<span id="feedEnd">XX</span>条/共
									<span id="feedUnReadCount">XXX</span>条
								</p> </a>
						--%></div>
						<%--<div class="more-feed">
							<span class="mark-read">
							<a id="setAllFeedsAsRead" href="#nogo">全部标记为已读</a>
							</span>
							<span><a href="/feedprefs.do">新鲜事设置</a></span>
							<span class="pipe"> <input type="hidden" id="maxPage" value="8" /></span>
						</div>
					--%></div>
				</div>
			</div>
		</div>